﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Purchase.Domian.Model
{
    /// <summary>
    /// 采购表
    /// </summary>
    public class Procurement: EntityModel
    {
        /// <summary>
        /// 主键
        /// </summary>

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        public int PId { get; set; }
        /// <summary>
        /// 采购编号
        /// </summary>
        public string ProcurementCode { get; set; }
        /// <summary>
        /// 采购单名称
        /// </summary>
        public string ProcurementName { get; set; }
        /// <summary>
        /// 采购时间
        /// </summary>
        public DateTime ProcurementTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal TaxRate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public int MaterialInfoId { get; set; }

    }
}
